package net.roobook.cms.modules.admin.service;

import net.roobook.cms.common.service.CrudService;
import net.roobook.cms.modules.admin.dao.ArchivesMapper;
import net.roobook.cms.modules.admin.entity.Archives;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author cos
 * @email 327878610@qq.com
 * @link https://roobook.net
 * @Description TODO
 * @date 2023/9/26 16:15
 **/
@Service
public class ArchivesService extends CrudService<ArchivesMapper, Archives> {
    @Autowired
    private ArchivesMapper archivesMapper;
    /**
     * 根据标签名查询文章
     */
    @Transactional(propagation= Propagation.NOT_SUPPORTED)
    public List<Archives> queryListByTagName(String tagName) {
        return archivesMapper.queryListByTagName(tagName);
    }
}
